home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-05-28 | 6.8 KB | [ TEXT/KEEN]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sun May 28 17:41:44 1995, modified Sun May 28 17:41:44 1995, creator 'KEEN', type ASCII, 5946 bytes "hAWK_prompt.c" , at 0x17ba 694 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KEEN]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0d 68 41 57 4b 5f 70 | 72 6f 6d 70 74 2e 63 00 |..hAWK_p|rompt.c.| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 45 45 | 4e 01 00 00 00 00 00 00 |.TEXTKEE|N.......| |00000050| 00 00 00 00 00 17 3a 00 | 00 02 b6 ab ee 9e 98 ab |......:.|........| |00000060| ee 9e 98 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f6 15 00 00 |........|........| |00000080| 2f 2a 20 68 41 57 4b 5f | 70 72 6f 6d 70 74 2e 63 |/* hAWK_|prompt.c| |00000090| 20 3a 20 70 72 6f 6d 70 | 74 20 75 73 65 72 20 66 | : promp|t user f| |000000a0| 6f 72 20 61 20 73 74 72 | 69 6e 67 20 2a 2f 0d 2f |or a str|ing */./| |000000b0| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 a9 20 31 39 |* Copyri|ght . 19| |000000c0| 38 36 2c 20 31 39 38 38 | 2c 20 31 39 38 39 20 31 |86, 1988|, 1989 1| |000000d0| 39 39 31 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 |991 the |Free Sof| |000000e0| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation| |000000f0| 2c 20 49 6e 63 2e 0d 20 | 2a 20 09 09 54 68 69 73 |, Inc.. |* ..This| |00000100| 20 66 69 6c 65 20 69 73 | 20 70 61 72 74 20 6f 66 | file is| part of| |00000110| 20 47 41 57 4b 2c 20 74 | 68 65 20 47 4e 55 20 69 | GAWK, t|he GNU i| |00000120| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of| |00000130| 20 74 68 65 0d 20 2a 20 | 41 57 4b 20 50 72 6f 67 | the. * |AWK Prog| |00000140| 61 6d 6d 69 6e 67 20 4c | 61 6e 67 75 61 67 65 2c |amming L|anguage,| |00000150| 20 6d 6f 64 69 66 69 65 | 64 20 66 6f 72 20 74 68 | modifie|d for th| |00000160| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 28 61 6c 73 |e Macint|osh (als| |00000170| 6f 20 63 61 6c 6c 65 64 | 20 68 41 57 4b 29 2e 0d |o called| hAWK)..| |00000180| 20 2a 20 09 09 47 41 57 | 4b 20 69 73 20 66 72 65 | * ..GAW|K is fre| |00000190| 65 20 73 6f 66 74 77 61 | 72 65 3b 20 79 6f 75 20 |e softwa|re; you | |000001a0| 63 61 6e 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |can redi|stribute| |000001b0| 20 6f 72 20 6d 6f 64 69 | 66 79 0d 20 2a 20 69 74 | or modi|fy. * it| |000001c0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms| |000001d0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene| |000001e0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen| |000001f0| 73 65 20 61 73 20 70 75 | 62 6c 69 73 68 65 64 20 |se as pu|blished | |00000200| 62 79 0d 20 2a 20 74 68 | 65 20 46 72 65 65 20 53 |by. * th|e Free S| |00000210| 6f 66 74 77 61 72 65 20 | 46 6f 75 6e 64 61 74 69 |oftware |Foundati| |00000220| 6f 6e 3b 20 65 69 74 68 | 65 72 20 76 65 72 73 69 |on; eith|er versi| |00000230| 6f 6e 20 31 2c 20 6f 72 | 20 61 6e 79 20 6c 61 74 |on 1, or| any lat| |00000240| 65 72 20 76 65 72 73 69 | 6f 6e 2e 0d 20 2a 20 09 |er versi|on.. * .| |00000250| 09 47 41 57 4b 20 69 73 | 20 64 69 73 74 72 69 62 |.GAWK is| distrib| |00000260| 75 74 65 64 20 69 6e 20 | 74 68 65 20 68 6f 70 65 |uted in |the hope| |00000270| 20 74 68 61 74 20 69 74 | 20 77 69 6c 6c 20 62 65 | that it| will be| |00000280| 20 75 73 65 66 75 6c 2c | 0d 20 2a 20 62 75 74 20 | useful,|. * but | |00000290| 57 49 54 48 4f 55 54 20 | 41 4e 59 20 57 41 52 52 |WITHOUT |ANY WARR| |000002a0| 41 4e 54 59 3b 20 77 69 | 74 68 6f 75 74 20 65 76 |ANTY; wi|thout ev| |000002b0| 65 6e 20 74 68 65 20 69 | 6d 70 6c 69 65 64 20 77 |en the i|mplied w| |000002c0| 61 72 72 61 6e 74 79 20 | 6f 66 0d 20 2a 20 4d 45 |arranty |of. * ME| |000002d0| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or| |000002e0| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P| |000002f0| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS| |00000300| 45 2e 20 53 65 65 20 74 | 68 65 0d 20 2a 20 47 4e |E. See t|he. * GN| |00000310| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public| |00000320| 20 4c 69 63 65 6e 73 65 | 20 66 6f 72 20 6d 6f 72 | License| for mor| |00000330| 65 20 64 65 74 61 69 6c | 73 2e 0d 20 2a 20 09 09 |e detail|s.. * ..| |00000340| 59 6f 75 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |You shou|ld have | |00000350| 72 65 63 65 69 76 65 64 | 20 61 20 63 6f 70 79 20 |received| a copy | |00000360| 6f 66 20 74 68 65 20 47 | 4e 55 20 47 65 6e 65 72 |of the G|NU Gener| |00000370| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens| |00000380| 65 0d 20 2a 20 61 6c 6f | 6e 67 20 77 69 74 68 20 |e. * alo|ng with | |00000390| 47 41 57 4b 3b 20 73 65 | 65 20 74 68 65 20 66 69 |GAWK; se|e the fi| |000003a0| 6c 65 20 22 43 4f 50 59 | 49 4e 47 20 68 41 57 4b |le "COPY|ING hAWK| |000003b0| 22 2e 20 49 66 20 6e 6f | 74 2c 20 77 72 69 74 65 |". If no|t, write| |000003c0| 20 74 6f 0d 20 2a 20 74 | 68 65 20 46 72 65 65 20 | to. * t|he Free | |000003d0| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat| |000003e0| 69 6f 6e 2c 20 36 37 35 | 20 4d 61 73 73 20 41 76 |ion, 675| Mass Av| |000003f0| 65 2c 20 43 61 6d 62 72 | 69 64 67 65 2c 20 4d 41 |e, Cambr|idge, MA| |00000400| 20 30 32 31 33 39 2c 20 | 55 53 41 2e 0d 20 2a 20 | 02139, |USA.. * | |00000410| 57 72 69 74 74 65 6e 20 | 66 6f 72 20 54 48 49 4e |Written |for THIN| |00000420| 4b 20 43 20 34 20 6f 6e | 20 74 68 65 20 4d 61 63 |K C 4 on| the Mac| |00000430| 69 6e 74 6f 73 68 20 62 | 79 20 4b 65 6e 20 45 61 |intosh b|y Ken Ea| |00000440| 72 6c 65 20 28 44 79 6e | 61 62 79 74 65 29 20 41 |rle (Dyn|abyte) A| |00000450| 75 67 20 31 39 39 31 2e | 0d 20 2a 20 52 65 76 69 |ug 1991.|. * Revi| |00000460| 73 69 6f 6e 20 4a 75 6c | 79 20 39 32 2c 20 70 72 |sion Jul|y 92, pr| |00000470| 6f 6d 70 74 20 61 6e 64 | 20 70 72 6f 67 72 65 73 |ompt and| progres| |00000480| 73 20 64 69 73 61 62 6c | 65 64 20 69 66 20 72 75 |s disabl|ed if ru| |00000490| 6e 6e 69 6e 67 20 63 6f | 6e 63 75 72 72 65 6e 74 |nning co|ncurrent| |000004a0| 6c 79 0d 20 2a 20 77 69 | 74 68 20 63 61 6c 6c 69 |ly. * wi|th calli| |000004b0| 6e 67 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0d |ng appli|cation..| |000004c0| 20 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 41 57 | */.#inc|lude "AW| |000004d0| 4b 2e 48 22 0d 0d 23 64 | 65 66 69 6e 65 20 50 52 |K.H"..#d|efine PR| |000004e0| 4f 4d 50 54 49 44 20 09 | 34 30 38 0d 23 64 65 66 |OMPTID .|408.#def| |000004f0| 69 6e 65 20 41 53 4b 09 | 09 09 33 0d 23 64 65 66 |ine ASK.|..3.#def| |00000500| 69 6e 65 20 41 4e 53 57 | 45 52 09 09 34 0d 0d 73 |ine ANSW|ER..4..s| |00000510| 74 61 74 69 63 20 44 69 | 61 6c 6f 67 50 74 72 09 |tatic Di|alogPtr.| |00000520| 70 72 6f 67 72 65 73 73 | 50 74 72 3b 0d 23 64 65 |progress|Ptr;.#de| |00000530| 66 69 6e 65 20 50 52 4f | 47 52 45 53 53 49 44 09 |fine PRO|GRESSID.| |00000540| 34 30 39 0d 0d 73 74 61 | 74 69 63 20 76 6f 69 64 |409..sta|tic void| |00000550| 20 67 65 74 5f 6f 6e 65 | 5f 73 74 72 69 6e 67 28 | get_one|_string(| |00000560| 4e 4f 44 45 20 2a 74 72 | 65 65 2c 20 4e 4f 44 45 |NODE *tr|ee, NODE| |00000570| 20 2a 2a 72 65 73 29 3b | 0d 4e 4f 44 45 20 2a 64 | **res);|.NODE *d| |00000580| 6f 5f 70 72 6f 6d 70 74 | 28 4e 4f 44 45 20 2a 74 |o_prompt|(NODE *t| |00000590| 72 65 65 29 3b 0d 63 68 | 61 72 20 2a 50 72 6f 6d |ree);.ch|ar *Prom| |000005a0| 70 74 28 63 68 61 72 20 | 2a 61 73 6b 2c 20 73 68 |pt(char |*ask, sh| |000005b0| 6f 72 74 20 61 73 6b 4c | 65 6e 29 3b 0d 73 74 61 |ort askL|en);.sta| |000005c0| 74 69 63 20 70 61 73 63 | 61 6c 20 42 6f 6f 6c 65 |tic pasc|al Boole| |000005d0| 61 6e 0d 50 72 6f 6d 70 | 74 46 69 6c 74 65 72 28 |an.Promp|tFilter(| |000005e0| 44 69 61 6c 6f 67 50 74 | 72 20 74 68 65 44 6c 6f |DialogPt|r theDlo| |000005f0| 67 2c 20 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |g, Event|Record *| |00000600| 74 68 65 45 76 65 6e 74 | 2c 20 73 68 6f 72 74 20 |theEvent|, short | |00000610| 2a 69 74 65 6d 48 69 74 | 29 3b 0d 4e 4f 44 45 20 |*itemHit|);.NODE | |00000620| 2a 64 6f 5f 70 72 6f 67 | 72 65 73 73 28 4e 4f 44 |*do_prog|ress(NOD| |00000630| 45 20 2a 74 72 65 65 29 | 3b 0d 73 68 6f 72 74 20 |E *tree)|;.short | |00000640| 50 72 6f 67 72 65 73 73 | 28 63 68 61 72 20 2a 6d |Progress|(char *m| |00000650| 73 67 2c 20 73 68 6f 72 | 74 20 6d 73 67 4c 65 6e |sg, shor|t msgLen| |00000660| 29 3b 0d 76 6f 69 64 20 | 55 70 64 61 74 65 50 72 |);.void |UpdatePr| |00000670| 6f 67 72 65 73 73 28 76 | 6f 69 64 29 3b 0d 76 6f |ogress(v|oid);.vo| |00000680| 69 64 20 44 69 73 70 6f | 73 65 50 72 6f 67 72 65 |id Dispo|seProgre| |00000690| 73 73 28 76 6f 69 64 29 | 3b 0d 0d 73 74 61 74 69 |ss(void)|;..stati| |000006a0| 63 20 76 6f 69 64 20 67 | 65 74 5f 6f 6e 65 5f 73 |c void g|et_one_s| |000006b0| 74 72 69 6e 67 28 4e 4f | 44 45 20 2a 74 72 65 65 |tring(NO|DE *tree| |000006c0| 2c 20 4e 4f 44 45 20 2a | 2a 72 65 73 29 0d 09 7b |, NODE *|*res)..{| |000006d0| 0d 09 69 66 20 28 21 74 | 72 65 65 29 0d 09 09 7b |..if (!t|ree)...{| |000006e0| 0d 09 09 2a 72 65 73 20 | 3d 20 57 48 4f 4c 45 4c |...*res |= WHOLEL| |000006f0| 49 4e 45 3b 0d 09 09 72 | 65 74 75 72 6e 3b 0d 09 |INE;...r|eturn;..| |00000700| 09 7d 0d 09 2a 72 65 73 | 20 3d 20 74 72 65 65 5f |.}..*res| = tree_| |00000710| 65 76 61 6c 28 74 72 65 | 65 2d 3e 6c 6e 6f 64 65 |eval(tre|e->lnode| |00000720| 29 3b 0d 09 7d 0d 0d 2f | 2a 20 44 69 73 70 6c 61 |);..}../|* Displa| |00000730| 79 20 64 69 61 6c 6f 67 | 20 77 69 74 68 20 70 72 |y dialog| with pr| |00000740| 6f 6d 70 74 20 61 73 6b | 69 6e 67 20 66 6f 72 20 |ompt ask|ing for | |00000750| 73 74 72 69 6e 67 2e 20 | 52 65 74 75 72 6e 20 73 |string. |Return s| |00000760| 74 72 69 6e 67 2e 20 2a | 2f 0d 4e 4f 44 45 20 2a |tring. *|/.NODE *| |00000770| 64 6f 5f 70 72 6f 6d 70 | 74 28 4e 4f 44 45 20 2a |do_promp|t(NODE *| |00000780| 74 72 65 65 29 0d 09 7b | 0d 09 4e 4f 44 45 20 2a |tree)..{|..NODE *| |00000790| 74 31 2c 20 2a 74 32 3b | 0d 09 63 68 61 72 20 2a |t1, *t2;|..char *| |000007a0| 61 6e 73 77 65 72 3b 0d | 0d 09 67 65 74 5f 6f 6e |answer;.|..get_on| |000007b0| 65 5f 73 74 72 69 6e 67 | 28 74 72 65 65 2c 20 26 |e_string|(tree, &| |000007c0| 74 31 29 3b 0d 09 74 31 | 20 3d 20 66 6f 72 63 65 |t1);..t1| = force| |000007d0| 5f 73 74 72 69 6e 67 28 | 74 31 29 3b 0d 09 61 6e |_string(|t1);..an| |000007e0| 73 77 65 72 20 3d 20 50 | 72 6f 6d 70 74 28 74 31 |swer = P|rompt(t1| |000007f0| 2d 3e 73 74 70 74 72 2c | 20 74 31 2d 3e 73 74 6c |->stptr,| t1->stl| |00000800| 65 6e 29 3b 0d 09 74 32 | 20 3d 20 74 6d 70 5f 73 |en);..t2| = tmp_s| |00000810| 74 72 69 6e 67 28 61 6e | 73 77 65 72 2c 20 28 73 |tring(an|swer, (s| |00000820| 68 6f 72 74 29 73 74 72 | 6c 65 6e 28 61 6e 73 77 |hort)str|len(answ| |00000830| 65 72 29 29 3b 0d 09 66 | 72 65 65 28 61 6e 73 77 |er));..f|ree(answ| |00000840| 65 72 29 3b 0d 09 66 72 | 65 65 5f 74 65 6d 70 28 |er);..fr|ee_temp(| |00000850| 74 31 29 3b 0d 09 72 65 | 74 75 72 6e 20 74 32 3b |t1);..re|turn t2;| |00000860| 0d 09 7d 0d 0d 2f 2a 20 | 44 69 73 70 6c 61 79 20 |..}../* |Display | |00000870| 64 69 61 6c 6f 67 20 77 | 69 74 68 20 70 72 6f 6d |dialog w|ith prom| |00000880| 70 74 20 6d 65 73 73 61 | 67 65 20 28 61 73 6b 29 |pt messa|ge (ask)| |00000890| 2c 20 72 65 74 75 72 6e | 0d 72 65 70 6c 79 20 74 |, return|.reply t| |000008a0| 79 70 65 64 20 69 6e 20 | 65 64 69 74 20 66 69 65 |yped in |edit fie| |000008b0| 6c 64 2e 20 46 6f 72 20 | 64 69 73 70 6c 61 79 20 |ld. For |display | |000008c0| 70 75 72 70 6f 73 65 73 | 2c 20 61 6c 6c 0d 27 5c |purposes|, all.'\| |000008d0| 6e 27 20 61 72 65 20 63 | 6f 6e 76 65 72 74 65 64 |n' are c|onverted| |000008e0| 20 74 6f 20 27 5c 72 27 | 2e 20 2a 2f 0d 63 68 61 | to '\r'|. */.cha| |000008f0| 72 20 2a 50 72 6f 6d 70 | 74 28 63 68 61 72 20 2a |r *Promp|t(char *| |00000900| 61 73 6b 2c 20 73 68 6f | 72 74 20 61 73 6b 4c 65 |ask, sho|rt askLe| |00000910| 6e 29 0d 09 7b 0d 09 44 | 69 61 6c 6f 67 50 74 72 |n)..{..D|ialogPtr| |00000920| 09 09 64 50 74 72 3b 0d | 09 63 68 61 72 09 09 09 |..dPtr;.|.char...| |00000930| 62 75 66 53 74 72 5b 32 | 35 36 5d 2c 0d 09 09 09 |bufStr[2|56],....| |00000940| 09 09 2a 61 6e 73 77 65 | 72 2c 0d 09 09 09 09 09 |..*answe|r,......| |00000950| 2a 74 50 74 72 2c 0d 09 | 09 09 09 09 2a 65 6e 64 |*tPtr,..|....*end| |00000960| 50 74 72 2c 0d 09 09 09 | 09 09 6f 6c 64 42 79 74 |Ptr,....|..oldByt| |00000970| 65 3b 0d 09 73 68 6f 72 | 74 09 09 09 09 69 2c 20 |e;..shor|t....i, | |00000980| 69 74 65 6d 48 69 74 2c | 20 6d 61 78 42 79 74 65 |itemHit,| maxByte| |00000990| 20 3d 20 30 2c 20 6e 6c | 5b 36 5d 3b 0d 09 65 78 | = 0, nl|[6];..ex| |000009a0| 74 65 72 6e 20 42 6f 6f | 6c 65 61 6e 20 67 43 6f |tern Boo|lean gCo| |000009b0| 6e 63 75 72 72 65 6e 74 | 3b 0d 23 69 66 64 65 66 |ncurrent|;.#ifdef| |000009c0| 20 70 6f 77 65 72 63 0d | 09 4d 6f 64 61 6c 46 69 | powerc.|.ModalFi| |000009d0| 6c 74 65 72 55 50 50 09 | 66 69 6c 74 65 72 55 50 |lterUPP.|filterUP| |000009e0| 50 3b 0d 23 65 6e 64 69 | 66 0d 09 0d 09 69 66 20 |P;.#endi|f....if | |000009f0| 28 67 43 6f 6e 63 75 72 | 72 65 6e 74 29 0d 09 09 |(gConcur|rent)...| |00000a00| 72 65 74 75 72 6e 28 4e | 55 4c 4c 29 3b 0d 09 0d |return(N|ULL);...| |00000a10| 09 69 66 20 28 61 73 6b | 4c 65 6e 20 3c 20 30 29 |.if (ask|Len < 0)| |00000a20| 0d 09 09 72 65 74 75 72 | 6e 28 4e 55 4c 4c 29 3b |...retur|n(NULL);| |00000a30| 0d 09 0d 09 69 66 20 28 | 21 47 65 74 41 6e 64 41 |....if (|!GetAndA| |00000a40| 6c 69 67 6e 44 69 61 6c | 6f 67 28 50 52 4f 4d 50 |lignDial|og(PROMP| |00000a50| 54 49 44 29 29 0d 09 09 | 72 65 74 75 72 6e 28 4e |TID))...|return(N| |00000a60| 55 4c 4c 29 3b 0d 09 64 | 50 74 72 20 3d 20 47 65 |ULL);..d|Ptr = Ge| |00000a70| 74 4e 65 77 44 69 61 6c | 6f 67 28 50 52 4f 4d 50 |tNewDial|og(PROMP| |00000a80| 54 49 44 2c 20 4e 55 4c | 4c 2c 20 28 57 69 6e 64 |TID, NUL|L, (Wind| |00000a90| 6f 77 50 74 72 29 2d 31 | 4c 29 3b 0d 09 69 66 20 |owPtr)-1|L);..if | |00000aa0| 28 21 64 50 74 72 29 0d | 09 09 72 65 74 75 72 6e |(!dPtr).|..return| |00000ab0| 28 4e 55 4c 4c 29 3b 0d | 09 69 66 20 28 61 73 6b |(NULL);.|.if (ask| |00000ac0| 4c 65 6e 20 3e 20 32 35 | 35 29 0d 09 09 7b 0d 09 |Len > 25|5)...{..| |00000ad0| 09 6d 61 78 42 79 74 65 | 20 3d 20 32 35 35 3b 0d |.maxByte| = 255;.| |00000ae0| 09 09 6f 6c 64 42 79 74 | 65 20 3d 20 2a 28 61 73 |..oldByt|e = *(as| |00000af0| 6b 2b 6d 61 78 42 79 74 | 65 29 3b 0d 09 09 2a 28 |k+maxByt|e);...*(| |00000b00| 61 73 6b 2b 6d 61 78 42 | 79 74 65 29 20 3d 20 27 |ask+maxB|yte) = '| |00000b10| 5c 30 27 3b 0d 09 09 7d | 0d 09 74 50 74 72 20 3d |\0';...}|..tPtr =| |00000b20| 20 61 73 6b 3b 0d 09 65 | 6e 64 50 74 72 20 3d 20 | ask;..e|ndPtr = | |00000b30| 74 50 74 72 20 2b 20 61 | 73 6b 4c 65 6e 3b 0d 09 |tPtr + a|skLen;..| |00000b40| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < | |00000b50| 36 3b 20 2b 2b 69 29 0d | 09 09 6e 6c 5b 69 5d 20 |6; ++i).|..nl[i] | |00000b60| 3d 20 2d 31 3b 0d 09 69 | 20 3d 20 30 3b 0d 09 77 |= -1;..i| = 0;..w| |00000b70| 68 69 6c 65 20 28 74 50 | 74 72 20 3c 20 65 6e 64 |hile (tP|tr < end| |00000b80| 50 74 72 29 0d 09 09 7b | 0d 09 09 69 66 20 28 2a |Ptr)...{|...if (*| |00000b90| 74 50 74 72 20 3d 3d 20 | 27 5c 6e 27 29 0d 09 09 |tPtr == |'\n')...| |00000ba0| 09 7b 0d 09 09 09 6e 6c | 5b 69 2b 2b 5d 20 3d 20 |.{....nl|[i++] = | |00000bb0| 74 50 74 72 20 2d 20 61 | 73 6b 3b 0d 09 09 09 2a |tPtr - a|sk;....*| |00000bc0| 74 50 74 72 20 3d 20 27 | 5c 72 27 3b 0d 09 09 09 |tPtr = '|\r';....| |00000bd0| 69 66 20 28 69 20 3e 3d | 20 36 29 0d 09 09 09 09 |if (i >=| 6).....| |00000be0| 62 72 65 61 6b 3b 0d 09 | 09 09 7d 0d 09 09 2b 2b |break;..|..}...++| |00000bf0| 74 50 74 72 3b 0d 09 09 | 7d 0d 09 43 74 6f 50 73 |tPtr;...|}..CtoPs| |00000c00| 74 72 28 61 73 6b 29 3b | 0d 09 53 65 74 45 54 65 |tr(ask);|..SetETe| |00000c10| 78 74 28 64 50 74 72 2c | 20 41 53 4b 2c 20 28 53 |xt(dPtr,| ASK, (S| |00000c20| 74 72 69 6e 67 50 74 72 | 29 61 73 6b 29 3b 0d 09 |tringPtr|)ask);..| |00000c30| 50 74 6f 43 73 74 72 28 | 28 53 74 72 69 6e 67 50 |PtoCstr(|(StringP| |00000c40| 74 72 29 61 73 6b 29 3b | 0d 09 69 66 20 28 6e 6c |tr)ask);|..if (nl| |00000c50| 5b 30 5d 20 3e 3d 20 30 | 29 0d 09 09 7b 0d 09 09 |[0] >= 0|)...{...| |00000c60| 69 20 3d 20 30 3b 0d 09 | 09 77 68 69 6c 65 20 28 |i = 0;..|.while (| |00000c70| 69 20 3c 20 36 20 26 26 | 20 6e 6c 5b 69 5d 20 3e |i < 6 &&| nl[i] >| |00000c80| 3d 20 30 29 0d 09 09 09 | 2a 28 61 73 6b 2b 6e 6c |= 0)....|*(ask+nl| |00000c90| 5b 69 2b 2b 5d 29 20 3d | 20 27 5c 6e 27 3b 0d 09 |[i++]) =| '\n';..| |00000ca0| 09 7d 0d 09 69 66 20 28 | 6d 61 78 42 79 74 65 29 |.}..if (|maxByte)| |00000cb0| 0d 09 09 2a 28 61 73 6b | 2b 6d 61 78 42 79 74 65 |...*(ask|+maxByte| |00000cc0| 29 20 3d 20 6f 6c 64 42 | 79 74 65 3b 0d 09 0d 09 |) = oldB|yte;....| |00000cd0| 53 68 6f 77 57 69 6e 64 | 6f 77 28 64 50 74 72 29 |ShowWind|ow(dPtr)| |00000ce0| 3b 0d 09 53 65 74 50 6f | 72 74 28 64 50 74 72 29 |;..SetPo|rt(dPtr)| |00000cf0| 3b 0d 09 46 72 61 6d 65 | 44 69 61 6c 6f 67 49 74 |;..Frame|DialogIt| |00000d00| 65 6d 28 64 50 74 72 2c | 31 29 3b 20 2f 2a 20 61 |em(dPtr,|1); /* a| |00000d10| 64 6d 69 74 74 65 64 6c | 79 20 6c 61 7a 79 2e 2e |dmittedl|y lazy..| |00000d20| 2e 20 2a 2f 0d 23 69 66 | 64 65 66 20 70 6f 77 65 |. */.#if|def powe| |00000d30| 72 63 0d 09 66 69 6c 74 | 65 72 55 50 50 20 3d 20 |rc..filt|erUPP = | |00000d40| 4e 65 77 4d 6f 64 61 6c | 46 69 6c 74 65 72 50 72 |NewModal|FilterPr| |00000d50| 6f 63 28 50 72 6f 6d 70 | 74 46 69 6c 74 65 72 29 |oc(Promp|tFilter)| |00000d60| 3b 0d 09 4d 6f 64 61 6c | 44 69 61 6c 6f 67 28 66 |;..Modal|Dialog(f| |00000d70| 69 6c 74 65 72 55 50 50 | 2c 20 26 69 74 65 6d 48 |ilterUPP|, &itemH| |00000d80| 69 74 29 3b 0d 09 44 69 | 73 70 6f 73 65 52 6f 75 |it);..Di|sposeRou| |00000d90| 74 69 6e 65 44 65 73 63 | 72 69 70 74 6f 72 28 66 |tineDesc|riptor(f| |00000da0| 69 6c 74 65 72 55 50 50 | 29 3b 0d 23 65 6c 73 65 |ilterUPP|);.#else| |00000db0| 0d 09 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 28 50 72 |..ModalD|ialog(Pr| |00000dc0| 6f 6d 70 74 46 69 6c 74 | 65 72 2c 20 26 69 74 65 |omptFilt|er, &ite| |00000dd0| 6d 48 69 74 29 3b 0d 23 | 65 6e 64 69 66 0d 09 69 |mHit);.#|endif..i| |00000de0| 66 20 28 69 74 65 6d 48 | 69 74 20 3d 3d 20 32 29 |f (itemH|it == 2)| |00000df0| 20 2f 2a 20 63 61 6e 63 | 65 6c 20 2a 2f 0d 09 09 | /* canc|el */...| |00000e00| 7b 0d 09 09 44 69 73 70 | 6f 73 44 69 61 6c 6f 67 |{...Disp|osDialog| |00000e10| 28 64 50 74 72 29 3b 0d | 09 09 72 65 74 75 72 6e |(dPtr);.|..return| |00000e20| 28 4e 55 4c 4c 29 3b 0d | 09 09 7d 0d 09 47 65 74 |(NULL);.|..}..Get| |00000e30| 45 54 65 78 74 28 64 50 | 74 72 2c 20 41 4e 53 57 |EText(dP|tr, ANSW| |00000e40| 45 52 2c 20 28 53 74 72 | 69 6e 67 50 74 72 29 62 |ER, (Str|ingPtr)b| |00000e50| 75 66 53 74 72 29 3b 0d | 09 50 74 6f 43 73 74 72 |ufStr);.|.PtoCstr| |00000e60| 28 28 53 74 72 69 6e 67 | 50 74 72 29 62 75 66 53 |((String|Ptr)bufS| |00000e70| 74 72 29 3b 0d 09 69 74 | 65 6d 48 69 74 20 3d 20 |tr);..it|emHit = | |00000e80| 28 73 68 6f 72 74 29 73 | 74 72 6c 65 6e 28 62 75 |(short)s|trlen(bu| |00000e90| 66 53 74 72 29 3b 0d 09 | 65 6d 61 6c 6c 6f 63 28 |fStr);..|emalloc(| |00000ea0| 61 6e 73 77 65 72 2c 20 | 63 68 61 72 20 2a 2c 20 |answer, |char *, | |00000eb0| 69 74 65 6d 48 69 74 20 | 2b 20 31 2c 20 22 50 72 |itemHit |+ 1, "Pr| |00000ec0| 6f 6d 70 74 22 29 3b 0d | 09 6d 65 6d 63 70 79 28 |ompt");.|.memcpy(| |00000ed0| 61 6e 73 77 65 72 2c 20 | 62 75 66 53 74 72 2c 20 |answer, |bufStr, | |00000ee0| 69 74 65 6d 48 69 74 20 | 2b 20 31 29 3b 0d 09 44 |itemHit |+ 1);..D| |00000ef0| 69 73 70 6f 73 44 69 61 | 6c 6f 67 28 64 50 74 72 |isposDia|log(dPtr| |00000f00| 29 3b 0d 09 55 70 64 61 | 74 65 50 72 6f 67 72 65 |);..Upda|teProgre| |00000f10| 73 73 28 29 3b 0d 09 72 | 65 74 75 72 6e 28 61 6e |ss();..r|eturn(an| |00000f20| 73 77 65 72 29 3b 0d 09 | 7d 0d 0d 2f 2a 20 20 46 |swer);..|}../* F| |00000f30| 69 6c 74 65 72 20 66 6f | 72 20 70 72 6f 6d 70 74 |ilter fo|r prompt| |00000f40| 20 64 69 61 6c 6f 67 3b | 20 74 72 65 61 74 20 3c | dialog;| treat <| |00000f50| 43 6f 6d 6d 61 6e 64 3e | 3c 52 65 74 75 72 6e 3e |Command>|<Return>| |00000f60| 20 61 73 0d 61 20 6c 69 | 74 65 72 61 6c 20 72 65 | as.a li|teral re| |00000f70| 74 75 72 6e 2e 20 54 72 | 65 61 74 20 3c 52 65 74 |turn. Tr|eat <Ret| |00000f80| 75 72 6e 3e 20 6f 72 20 | 3c 45 6e 74 65 72 3e 20 |urn> or |<Enter> | |00000f90| 61 73 20 22 4f 4b 22 2e | 20 2a 2f 0d 73 74 61 74 |as "OK".| */.stat| |00000fa0| 69 63 20 70 61 73 63 61 | 6c 20 42 6f 6f 6c 65 61 |ic pasca|l Boolea| |00000fb0| 6e 0d 50 72 6f 6d 70 74 | 46 69 6c 74 65 72 28 44 |n.Prompt|Filter(D| |00000fc0| 69 61 6c 6f 67 50 74 72 | 20 74 68 65 44 6c 6f 67 |ialogPtr| theDlog| |00000fd0| 2c 20 45 76 65 6e 74 52 | 65 63 6f 72 64 20 2a 74 |, EventR|ecord *t| |00000fe0| 68 65 45 76 65 6e 74 2c | 20 73 68 6f 72 74 20 2a |heEvent,| short *| |00000ff0| 69 74 65 6d 48 69 74 29 | 0d 09 7b 0d 09 72 65 67 |itemHit)|..{..reg| |00001000| 69 73 74 65 72 20 73 68 | 6f 72 74 20 20 20 20 6b |ister sh|ort k| |00001010| 65 79 3b 0d 0d 09 2f 2a | 20 4a 75 73 74 20 63 61 |ey;.../*| Just ca| |00001020| 74 63 68 69 6e 67 20 6b | 65 79 20 65 76 65 6e 74 |tching k|ey event| |00001030| 73 20 2a 2f 0d 09 69 66 | 20 28 74 68 65 45 76 65 |s */..if| (theEve| |00001040| 6e 74 2d 3e 77 68 61 74 | 20 21 3d 20 6b 65 79 44 |nt->what| != keyD| |00001050| 6f 77 6e 29 0d 09 09 72 | 65 74 75 72 6e 20 28 46 |own)...r|eturn (F| |00001060| 41 4c 53 45 29 3b 0d 0d | 09 6b 65 79 20 3d 20 28 |ALSE);..|.key = (| |00001070| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 29 20 74 |unsigned| char) t| |00001080| 68 65 45 76 65 6e 74 2d | 3e 6d 65 73 73 61 67 65 |heEvent-|>message| |00001090| 3b 0d 0d 09 69 66 20 28 | 28 74 68 65 45 76 65 6e |;...if (|(theEven| |000010a0| 74 2d 3e 6d 6f 64 69 66 | 69 65 72 73 20 26 20 63 |t->modif|iers & c| |000010b0| 6d 64 4b 65 79 29 0d 09 | 09 26 26 20 6b 65 79 20 |mdKey)..|.&& key | |000010c0| 3d 3d 20 27 5c 72 27 29 | 20 2f 2a 20 63 6f 6d 6d |== '\r')| /* comm| |000010d0| 61 6e 64 20 2d 20 72 65 | 74 75 72 6e 20 2a 2f 0d |and - re|turn */.| |000010e0| 09 09 7b 0d 09 09 54 45 | 4b 65 79 20 28 27 5c 72 |..{...TE|Key ('\r| |000010f0| 27 2c 20 28 28 44 69 61 | 6c 6f 67 50 65 65 6b 29 |', ((Dia|logPeek)| |00001100| 74 68 65 44 6c 6f 67 29 | 2d 3e 74 65 78 74 48 29 |theDlog)|->textH)| |00001110| 3b 0d 09 09 74 68 65 45 | 76 65 6e 74 2d 3e 77 68 |;...theE|vent->wh| |00001120| 61 74 20 3d 20 6e 75 6c | 6c 45 76 65 6e 74 3b 0d |at = nul|lEvent;.| |00001130| 09 09 72 65 74 75 72 6e | 20 28 46 41 4c 53 45 29 |..return| (FALSE)| |00001140| 3b 0d 09 09 7d 0d 09 65 | 6c 73 65 20 69 66 20 28 |;...}..e|lse if (| |00001150| 6b 65 79 20 3d 3d 20 27 | 5c 72 27 20 7c 7c 20 6b |key == '|\r' || k| |00001160| 65 79 20 3d 3d 20 27 5c | 30 30 33 27 29 0d 09 09 |ey == '\|003')...| |00001170| 7b 0d 09 09 2a 69 74 65 | 6d 48 69 74 20 3d 20 31 |{...*ite|mHit = 1| |00001180| 3b 0d 09 09 72 65 74 75 | 72 6e 20 28 54 52 55 45 |;...retu|rn (TRUE| |00001190| 29 3b 0d 09 09 7d 0d 09 | 72 65 74 75 72 6e 20 28 |);...}..|return (| |000011a0| 46 41 4c 53 45 29 3b 0d | 09 7d 0d 0d 2f 2a 20 44 |FALSE);.|.}../* D| |000011b0| 69 73 70 6c 61 79 20 6d | 65 73 73 61 67 65 20 6f |isplay m|essage o| |000011c0| 6e 20 74 68 65 20 67 6f | 20 74 6f 20 72 65 70 6f |n the go| to repo| |000011d0| 72 74 20 70 72 6f 67 72 | 65 73 73 2e 20 52 65 74 |rt progr|ess. Ret| |000011e0| 75 72 6e 20 6e 75 6d 62 | 65 72 20 6f 66 0d 74 69 |urn numb|er of.ti| |000011f0| 6d 65 73 20 50 72 6f 67 | 72 65 73 73 20 68 61 73 |mes Prog|ress has| |00001200| 20 62 65 65 6e 20 63 61 | 6c 6c 65 64 2e 20 2a 2f | been ca|lled. */| |00001210| 0d 4e 4f 44 45 20 2a 64 | 6f 5f 70 72 6f 67 72 65 |.NODE *d|o_progre| |00001220| 73 73 28 4e 4f 44 45 20 | 2a 74 72 65 65 29 0d 09 |ss(NODE |*tree)..| |00001230| 7b 0d 09 4e 4f 44 45 20 | 09 2a 74 31 2c 20 2a 74 |{..NODE |.*t1, *t| |00001240| 32 3b 0d 0d 09 67 65 74 | 5f 6f 6e 65 5f 73 74 72 |2;...get|_one_str| |00001250| 69 6e 67 28 74 72 65 65 | 2c 20 26 74 31 29 3b 0d |ing(tree|, &t1);.| |00001260| 09 74 31 20 3d 20 66 6f | 72 63 65 5f 73 74 72 69 |.t1 = fo|rce_stri| |00001270| 6e 67 28 74 31 29 3b 0d | 09 74 32 20 3d 20 74 6d |ng(t1);.|.t2 = tm| |00001280| 70 5f 6e 75 6d 62 65 72 | 28 28 41 57 4b 4e 55 4d |p_number|((AWKNUM| |00001290| 29 50 72 6f 67 72 65 73 | 73 28 74 31 2d 3e 73 74 |)Progres|s(t1->st| |000012a0| 70 74 72 2c 20 74 31 2d | 3e 73 74 6c 65 6e 29 29 |ptr, t1-|>stlen))| |000012b0| 3b 0d 09 66 72 65 65 5f | 74 65 6d 70 28 74 31 29 |;..free_|temp(t1)| |000012c0| 3b 0d 09 72 65 74 75 72 | 6e 20 74 32 3b 0d 09 7d |;..retur|n t2;..}| |000012d0| 0d 0d 73 68 6f 72 74 20 | 50 72 6f 67 72 65 73 73 |..short |Progress| |000012e0| 28 63 68 61 72 20 2a 6d | 73 67 2c 20 73 68 6f 72 |(char *m|sg, shor| |000012f0| 74 20 6d 73 67 4c 65 6e | 29 0d 09 7b 0d 09 73 68 |t msgLen|)..{..sh| |00001300| 6f 72 74 09 09 09 09 6d | 61 78 42 79 74 65 20 3d |ort....m|axByte =| |00001310| 20 30 3b 0d 09 63 68 61 | 72 09 09 09 2a 74 50 74 | 0;..cha|r...*tPt| |00001320| 72 2c 0d 09 09 09 09 09 | 2a 65 6e 64 50 74 72 2c |r,......|*endPtr,| |00001330| 0d 09 09 09 09 09 6f 6c | 64 42 79 74 65 3b 0d 09 |......ol|dByte;..| |00001340| 42 6f 6f 6c 65 61 6e 09 | 09 09 66 69 72 73 74 20 |Boolean.|..first | |00001350| 3d 20 46 41 4c 53 45 3b | 0d 09 73 74 61 74 69 63 |= FALSE;|..static| |00001360| 20 73 68 6f 72 74 09 09 | 6e 75 6d 43 61 6c 6c 73 | short..|numCalls| |00001370| 3b 0d 09 73 68 6f 72 74 | 09 09 09 09 69 2c 20 6e |;..short|....i, n| |00001380| 6c 5b 36 5d 3b 0d 09 65 | 78 74 65 72 6e 20 42 6f |l[6];..e|xtern Bo| |00001390| 6f 6c 65 61 6e 20 67 43 | 6f 6e 63 75 72 72 65 6e |olean gC|oncurren| |000013a0| 74 3b 0d 09 0d 09 69 66 | 20 28 67 43 6f 6e 63 75 |t;....if| (gConcu| |000013b0| 72 72 65 6e 74 29 0d 09 | 09 72 65 74 75 72 6e 28 |rrent)..|.return(| |000013c0| 30 29 3b 0d 09 0d 09 69 | 66 20 28 6d 73 67 4c 65 |0);....i|f (msgLe| |000013d0| 6e 20 3c 20 30 29 0d 09 | 09 72 65 74 75 72 6e 28 |n < 0)..|.return(| |000013e0| 30 29 3b 0d 09 69 66 20 | 28 21 70 72 6f 67 72 65 |0);..if |(!progre| |000013f0| 73 73 50 74 72 29 0d 09 | 09 7b 0d 09 09 66 69 72 |ssPtr)..|.{...fir| |00001400| 73 74 20 3d 20 54 52 55 | 45 3b 0d 09 09 69 66 20 |st = TRU|E;...if | |00001410| 28 21 47 65 74 41 6e 64 | 41 6c 69 67 6e 44 69 61 |(!GetAnd|AlignDia| |00001420| 6c 6f 67 28 50 52 4f 47 | 52 45 53 53 49 44 29 29 |log(PROG|RESSID))| |00001430| 0d 09 09 09 72 65 74 75 | 72 6e 28 30 29 3b 0d 09 |....retu|rn(0);..| |00001440| 09 70 72 6f 67 72 65 73 | 73 50 74 72 20 3d 20 47 |.progres|sPtr = G| |00001450| 65 74 4e 65 77 44 69 61 | 6c 6f 67 28 50 52 4f 47 |etNewDia|log(PROG| |00001460| 52 45 53 53 49 44 2c 20 | 4e 55 4c 4c 2c 20 28 57 |RESSID, |NULL, (W| |00001470| 69 6e 64 6f 77 50 74 72 | 29 2d 31 4c 29 3b 0d 09 |indowPtr|)-1L);..| |00001480| 09 69 66 20 28 21 70 72 | 6f 67 72 65 73 73 50 74 |.if (!pr|ogressPt| |00001490| 72 29 0d 09 09 09 72 65 | 74 75 72 6e 28 30 29 3b |r)....re|turn(0);| |000014a0| 0d 09 09 7d 0d 09 69 66 | 20 28 6d 73 67 4c 65 6e |...}..if| (msgLen| |000014b0| 20 3e 20 32 35 35 29 0d | 09 09 7b 0d 09 09 6d 61 | > 255).|..{...ma| |000014c0| 78 42 79 74 65 20 3d 20 | 32 35 35 3b 0d 09 09 6f |xByte = |255;...o| |000014d0| 6c 64 42 79 74 65 20 3d | 20 2a 28 6d 73 67 2b 6d |ldByte =| *(msg+m| |000014e0| 61 78 42 79 74 65 29 3b | 0d 09 09 2a 28 6d 73 67 |axByte);|...*(msg| |000014f0| 2b 6d 61 78 42 79 74 65 | 29 20 3d 20 27 5c 30 27 |+maxByte|) = '\0'| |00001500| 3b 0d 09 09 7d 0d 09 74 | 50 74 72 20 3d 20 6d 73 |;...}..t|Ptr = ms| |00001510| 67 3b 0d 09 65 6e 64 50 | 74 72 20 3d 20 74 50 74 |g;..endP|tr = tPt| |00001520| 72 20 2b 20 6d 73 67 4c | 65 6e 3b 0d 09 66 6f 72 |r + msgL|en;..for| |00001530| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 36 3b 20 | (i = 0;| i < 6; | |00001540| 2b 2b 69 29 0d 09 09 6e | 6c 5b 69 5d 20 3d 20 2d |++i)...n|l[i] = -| |00001550| 31 3b 0d 09 69 20 3d 20 | 30 3b 0d 09 77 68 69 6c |1;..i = |0;..whil| |00001560| 65 20 28 74 50 74 72 20 | 3c 20 65 6e 64 50 74 72 |e (tPtr |< endPtr| |00001570| 29 0d 09 09 7b 0d 09 09 | 69 66 20 28 2a 74 50 74 |)...{...|if (*tPt| |00001580| 72 20 3d 3d 20 27 5c 6e | 27 29 0d 09 09 09 7b 0d |r == '\n|')....{.| |00001590| 09 09 09 6e 6c 5b 69 2b | 2b 5d 20 3d 20 74 50 74 |...nl[i+|+] = tPt| |000015a0| 72 20 2d 20 6d 73 67 3b | 0d 09 09 09 2a 74 50 74 |r - msg;|....*tPt| |000015b0| 72 20 3d 20 27 5c 72 27 | 3b 0d 09 09 09 69 66 20 |r = '\r'|;....if | |000015c0| 28 69 20 3e 3d 20 36 29 | 0d 09 09 09 09 62 72 65 |(i >= 6)|.....bre| |000015d0| 61 6b 3b 0d 09 09 09 7d | 0d 09 09 2b 2b 74 50 74 |ak;....}|...++tPt| |000015e0| 72 3b 0d 09 09 7d 0d 09 | 43 74 6f 50 73 74 72 28 |r;...}..|CtoPstr(| |000015f0| 6d 73 67 29 3b 0d 09 53 | 65 74 45 54 65 78 74 28 |msg);..S|etEText(| |00001600| 70 72 6f 67 72 65 73 73 | 50 74 72 2c 20 31 2c 20 |progress|Ptr, 1, | |00001610| 28 53 74 72 69 6e 67 50 | 74 72 29 6d 73 67 29 3b |(StringP|tr)msg);| |00001620| 0d 09 50 74 6f 43 73 74 | 72 28 28 53 74 72 69 6e |..PtoCst|r((Strin| |00001630| 67 50 74 72 29 6d 73 67 | 29 3b 0d 09 69 66 20 28 |gPtr)msg|);..if (| |00001640| 6e 6c 5b 30 5d 20 3e 3d | 20 30 29 0d 09 09 7b 0d |nl[0] >=| 0)...{.| |00001650| 09 09 69 20 3d 20 30 3b | 0d 09 09 77 68 69 6c 65 |..i = 0;|...while| |00001660| 20 28 69 20 3c 20 36 20 | 26 26 20 6e 6c 5b 69 5d | (i < 6 |&& nl[i]| |00001670| 20 3e 3d 20 30 29 0d 09 | 09 09 2a 28 6d 73 67 2b | >= 0)..|..*(msg+| |00001680| 6e 6c 5b 69 2b 2b 5d 29 | 20 3d 20 27 5c 6e 27 3b |nl[i++])| = '\n';| |00001690| 0d 09 09 7d 0d 09 69 66 | 20 28 6d 61 78 42 79 74 |...}..if| (maxByt| |000016a0| 65 29 0d 09 09 2a 28 6d | 73 67 2b 6d 61 78 42 79 |e)...*(m|sg+maxBy| |000016b0| 74 65 29 20 3d 20 6f 6c | 64 42 79 74 65 3b 0d 09 |te) = ol|dByte;..| |000016c0| 69 66 20 28 66 69 72 73 | 74 29 0d 09 09 7b 0d 09 |if (firs|t)...{..| |000016d0| 09 53 68 6f 77 57 69 6e | 64 6f 77 28 70 72 6f 67 |.ShowWin|dow(prog| |000016e0| 72 65 73 73 50 74 72 29 | 3b 0d 09 09 44 72 61 77 |ressPtr)|;...Draw| |000016f0| 44 69 61 6c 6f 67 28 70 | 72 6f 67 72 65 73 73 50 |Dialog(p|rogressP| |00001700| 74 72 29 3b 0d 09 09 7d | 0d 09 0d 09 72 65 74 75 |tr);...}|....retu| |00001710| 72 6e 28 2b 2b 6e 75 6d | 43 61 6c 6c 73 29 3b 0d |rn(++num|Calls);.| |00001720| 09 7d 0d 0d 76 6f 69 64 | 20 55 70 64 61 74 65 50 |.}..void| UpdateP| |00001730| 72 6f 67 72 65 73 73 28 | 29 0d 09 7b 0d 09 69 66 |rogress(|)..{..if| |00001740| 20 28 70 72 6f 67 72 65 | 73 73 50 74 72 29 0d 09 | (progre|ssPtr)..| |00001750| 09 44 72 61 77 44 69 61 | 6c 6f 67 28 70 72 6f 67 |.DrawDia|log(prog| |00001760| 72 65 73 73 50 74 72 29 | 3b 0d 09 7d 0d 0d 76 6f |ressPtr)|;..}..vo| |00001770| 69 64 20 44 69 73 70 6f | 73 65 50 72 6f 67 72 65 |id Dispo|seProgre| |00001780| 73 73 28 29 0d 09 7b 0d | 09 69 66 20 28 70 72 6f |ss()..{.|.if (pro| |00001790| 67 72 65 73 73 50 74 72 | 29 0d 09 09 44 69 73 70 |gressPtr|)...Disp| |000017a0| 6f 73 44 69 61 6c 6f 67 | 28 70 72 6f 67 72 65 73 |osDialog|(progres| |000017b0| 73 50 74 72 29 3b 0d 09 | 7d 0d 00 00 00 00 00 00 |sPtr);..|}.......| |000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001800| 00 00 01 00 00 00 02 14 | 00 00 01 14 00 00 00 a2 |........|........| |00001810| 20 3a 20 70 72 6f 6d 70 | 74 20 75 73 65 72 20 66 | : promp|t user f| |00001820| 6f 72 20 61 20 73 74 72 | 69 6e 67 20 2a 2f 0d 23 |or a str|ing */.#| |00001830| 0d 68 41 57 4b 5f 70 72 | 6f 6d 70 74 2e 63 02 00 |.hAWK_pr|ompt.c..| |00001840| 00 00 54 45 58 54 4b 45 | 45 4e 01 00 00 5e 00 00 |..TEXTKE|EN...^..| |00001850| 00 00 54 45 58 54 4b 45 | 45 4e 01 00 00 5e 00 00 |..TEXTKE|EN...^..| |00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001870| 00 00 a5 30 3b ba 00 00 | 17 3a 00 00 02 b6 31 2c |...0;...|.:....1,| |00001880| 20 2a 74 32 3b 0d 09 72 | 65 67 69 73 74 65 72 20 | *t2;..r|egister | |00001890| 63 68 61 72 20 2a 61 6e | 73 77 65 72 3b 0d 0d 09 |char *an|swer;...| |000018a0| 67 65 74 5f 6f 6e 65 28 | 74 72 65 65 2c 20 26 74 |get_one(|tree, &t| |000018b0| 31 29 3b 0d 09 74 31 20 | 3d 20 66 6f 72 63 65 5f |1);..t1 |= force_| |000018c0| 73 74 72 69 6e 67 28 74 | 31 29 3b 0d 09 61 6e 73 |string(t|1);..ans| |000018d0| 77 65 72 20 3d 20 50 72 | 6f 6d 70 74 28 74 31 2d |wer = Pr|ompt(t1-| |000018e0| 3e 73 74 70 74 72 2c 20 | 74 31 2d 3e 73 74 6c 65 |>stptr, |t1->stle| |000018f0| 6e 29 3b 0d 09 74 32 20 | 3d 20 74 6d 70 5f 73 74 |n);..t2 |= tmp_st| |00001900| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 4d |........|.......M| |00001910| 6f 6e 61 63 6f 00 00 00 | 00 04 ab 1f 9f c1 00 00 |onaco...|........| |00001920| 00 08 00 32 00 04 01 2c | 01 e0 00 00 00 92 00 07 |...2...,|........| |00001930| 00 00 16 31 00 00 16 40 | 0f 44 69 73 70 6f 73 65 |...1...@|.Dispose| |00001940| 50 72 6f 67 72 65 73 73 | 00 00 10 d5 00 00 10 e0 |Progress|........| |00001950| 0b 64 6f 5f 70 72 6f 67 | 72 65 73 73 00 00 06 f0 |.do_prog|ress....| |00001960| 00 00 06 f9 09 64 6f 5f | 70 72 6f 6d 70 74 00 00 |.....do_|prompt..| |00001970| 06 27 00 00 06 35 0f 67 | 65 74 5f 6f 6e 65 5f 73 |.'...5.g|et_one_s| |00001980| 74 72 69 6e 67 00 00 00 | 11 96 00 00 11 9e 09 50 |tring...|.......P| |00001990| 72 6f 67 72 65 73 73 00 | 00 00 08 73 00 00 08 79 |rogress.|...s...y| |000019a0| 07 50 72 6f 6d 70 74 00 | 00 00 15 e7 00 00 15 f5 |.Prompt.|........| |000019b0| 0f 55 70 64 61 74 65 50 | 72 6f 67 72 65 73 73 00 |.UpdateP|rogress.| |000019c0| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000019e0| 00 00 00 00 00 00 00 03 | 00 04 00 5d 00 88 02 11 |........|...]....| |000019f0| 03 89 00 5d 00 88 02 11 | 03 89 ad c2 d6 34 00 00 |...]....|.....4..| |00001a00| 16 f3 00 00 17 02 00 00 | 00 00 00 00 00 00 00 04 |........|........| |00001a10| 00 01 00 01 00 00 01 00 | 00 00 02 14 00 00 01 14 |........|........| |00001a20| 00 00 00 a2 01 3b 63 8c | 0f 10 00 00 00 1c 00 a2 |.....;c.|........| |00001a30| 00 05 45 54 41 42 00 00 | 00 32 45 46 4e 54 00 00 |..ETAB..|.2EFNT..| |00001a40| 00 3e 4a 41 47 5a 00 00 | 00 4a 57 53 49 5a 00 00 |.>JAGZ..|.JWSIZ..| |00001a50| 00 56 4d 50 53 52 00 01 | 00 62 4d 57 42 42 00 00 |.VMPSR..|.bMWBB..| |00001a60| 00 7a 03 ec ff ff 00 00 | 00 00 00 00 00 00 03 eb |.z......|........| |00001a70| ff ff 00 00 00 08 00 00 | 00 00 03 ed ff ff 00 00 |........|........| |00001a80| 00 16 00 00 00 00 03 ee | ff ff 00 00 00 1e 00 00 |........|........| |00001a90| 00 00 03 ef ff ff 00 00 | 00 2a 00 00 00 00 03 ed |........|.*......| |00001aa0| ff ff 00 00 00 c0 00 00 | 00 00 03 f0 ff ff 00 00 |........|........| |00001ab0| 01 0c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+